<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:fb="http://www.facebook.com/2008/fbml" >
<head>
<title>test2</title>
<link rel="stylesheet" href="http://static.ak.facebook.com/css/fb_connect.css" type="text/css" />
</head>
<body>
<script src="http://static.ak.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
<script>

function fb_inviteFriends() {
       // alert("hi");
	FB.Connect.requireSession( 
            function() { //Connect succes

                var uid = FB.Facebook.apiClient.get_session().uid;
                var fbml = fb_getInviteFBML() ;
                var dialog = new FB.UI. FBMLPopupDialog("Share a Walk invite", fbml) ;
                dialog.setContentWidth(650);
                dialog.setContentHeight(450);
                dialog.show();

            }
        );

} 

function fb_getInviteFBML() {
    var uid = FB.Facebook.apiClient.get_session().uid;
    var fbml = "";
    fbml = 
    '<fb:fbml>\n' +
        '<fb:request-form\n'+
                            //Redirect back to this page
                            ' action="http://apps.facebook.com/shareawalk/shareNew.php"\n'+
                            ' method="POST"\n'+
                            ' invite="true"\n'+
                            ' type="Weblings Invite"\n' +
                            ' content="I need your help to discover all the Weblings and save the Internet! WebWars: Weblings is a cool new game where we can collect fantastic creatures while surfing our favorite websites. Come find the missing Weblings with me!<fb:req-choice url=\'http://apps.facebook.com/shareawalk\' label=\'Accept\'"\n'+ 
                      '>\n'+
                       ' <fb:multi-friend-selector\n'+
                            ' rows="2"\n'+
                            ' cols="4"\n'+
                            ' bypass="Cancel"\n'+
                            ' showborder="false"\n'+
			    ' target="_top"\n'+
                            ' actiontext="Use this form to invite your friends to Share a Walk"/>\n'+
                ' </fb:request-form>'+
    ' </fb:fbml>';
    return fbml;
}
	
</script>
<script type="text/javascript">
        FB_RequireFeatures(["XFBML"], function(){ FB.Facebook.init("48b246ca8962048014718ca6f60f6957", "xd_receiver.htm"); });
</script>


</body>
</html>
